import BaseMock from '../baseMock'

export default class Role extends BaseMock {
  constructor() {
    const name = 'RoleMock'
    const listApi = '/api/role/list'
    const deleteApi = /\/*\/role\/deleteItem/ // 带参数的必须要用正则
    const total = 15
    const itemStruct = {
      // 单item数据结构
      id: '@increment',
      name: '@cname()',
      img: '@image'
    }

    super({ name, total, itemStruct, listApi, deleteApi })
  }
}
